package org.bonorsoft.modules.control.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.bonorsoft.modules.control.entity.Label;
import org.bonorsoft.modules.control.entity.Population;
import com.baomidou.mybatisplus.extension.service.IService;
import org.bonorsoft.modules.control.vo.PopulationVo;

import java.util.List;

/**
 * @Description: 实有人口信息
 * @Author: WilliamYe
 * @Date:   2021-03-04
 * @Version: V1.0
 */
public interface IPopulationService extends IService<Population> {

    IPage<PopulationVo> paging(Page<Population> page, QueryWrapper<Population> queryWrapper);

    /**
     * 获取带头像的数据
     * @param queryWrapper
     * @return
     */
    List<PopulationVo> listing(QueryWrapper<Population> queryWrapper);

    int saveBatchPhoto(List<PopulationVo> list);

    List<Label> getLabel(String id);
}
